package edu.mit.media.fv.aqwidgets
{
	import edu.mit.media.fv.components.AQTextField;
	import edu.mit.media.fv.events.FVNetworkEvent;
	import edu.mit.media.fv.fluidspace.*;
	
	import flash.display.*;
	import flash.events.MouseEvent;
	
	public class AQLoginPanel extends MovieClip
	{
		var _namebox:AQTextField;
		var _passwordbox:AQTextField;
		
		public function AQLoginPanel()
		{
			super();
		}
		private function processMouseClicked(event:MouseEvent):void{
			var data:Object = new Object();
			data.command = FluidConstants.LOGIN;
			data.username = _namebox.text;
			data.password = _passwordbox.text;
			var e:FVNetworkEvent = new FVNetworkEvent(data);
			FluidEventHandler.dispatchEvent(e);
		}
		
	}
}